// Package car_park_api
// @Author Spume
// @Date 2024-12-19

package car_park_api

// API 端点常量
const (
	// 默认主机地址
	DefaultParkHost = "http://general.yunwu.net.cn/api"
	
	// API 路径
	GetParksAPI      = "/park/getparks"
	GetOrdersAPI     = "/park/getorders"
	GetMonthCarAPI   = "/park/getmonthcars"
	GetAbnormalOrderAPI = "/park/getabnormalorder"
)

// HTTP 状态码
const (
	StatusSuccess = 0
	StatusError   = 1
)

// 订单类型
const (
	OrderTypeTemporary = 1 // 临停订单
	OrderTypeMonthly   = 2 // 月卡订单
)

// 支付方式
const (
	PayWayOnline  = 1 // 线上支付
	PayWayOffline = 2 // 线下支付
	PayWayCash    = 3 // 现金支付
)

// 默认分页参数
const (
	DefaultPageIndex = 1
	DefaultPageSize  = 10
	MaxPageSize      = 100
)

// 错误消息
const (
	ErrMsgInvalidParams = "参数无效"
	ErrMsgAPIError      = "API调用失败"
	ErrMsgParseError    = "数据解析失败"
	ErrMsgSignError     = "签名验证失败"
)